export function version() {
	let version = __wxConfig.envVersion; //获取小程序当前环境
	let globalData = {
		baseUrl: "/ts/miniapp/api",
		version: version,
	};
	switch (version) {
		case 'develop': // 开发
			// globalData.url = 'https://www.szk.com/ts/miniapp/api';
			globalData.IP = 'https://www.szk.com';
			globalData.url = 'https://www.szk.com/app/v1'
			break;
		case 'trial': // 体验
			// globalData.url = 'https://www.szk.com/school/parent/api';
			// globalData.IP='https://www.szk.com';
			globalData.url = 'https://www.szk.com/app/v1';
			globalData.IP = 'https://www.szk.com';
			break;
		case 'release': // 生产
			// globalData.url = 'https://www.szk.com/school/parent/api';
			// globalData.IP='https://www.szk.com';
			globalData.url = 'https://www.szk.com/app/v1';
			globalData.IP = 'https://www.szk.com';
			break;
		default: // 默认
			// globalData.url = 'https://www.szk.com/school/parent/api';
			// globalData.IP='https://www.szk.com';
			// globalData.url = 'https://www.szk.com/ts/miniapp/api';
			globalData.url = 'https://www.szk.com/app/v1'
			globalData.IP = 'https://www.szk.com';
	}
	return globalData;
}
